{% extends "base.html.j2" %}
{% block title %}{{ entry.raw_title }}{% endblock %}

{% block body %}

<article class="entry">
    <header>
        <h1 class="title">
            {{ entry.title }}
            {% if entry.private %}<span class="private">[PRIV]</span>{%- endif -%}
        </h1>
        {% if entry.date %}
        <p class="date">
            {% trans %}published on{% endtrans %}
            <time datetime="{{ entry.datehtml }}">{{ entry.date }}</time>
        {% endif %}
    </header>

    <section class="entry hyphenate prettify">
        {{ entry.content }}
    </section>

    {%- if entry.tags != [''] %}
    <footer>
        <p class="tags">
        {{_("This entry is tagged")}}
        {% for tag in entry.tags|sort(case_sensitive=true) %}
            {%- if not loop.first and not loop.last %}, {% endif -%}
            {%- if loop.last and not loop.first %}{% trans %} and {% endtrans %}{% endif -%}
            <a rel="tag" href="{{ base_uri }}tags/{{ slugify(tag) }}"
               title="{{ tag }}">{{ tag }}</a>
        {%- endfor %}
    </footer>
    {%- endif %}
</article>

{% if entry.comments %}
<section id="comments">
    <div id="disqus_thread"></div>
    <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
        var disqus_shortname = 'alberteromero'; // required: replace example with your forum shortname

        /* * * DON'T EDIT BELOW THIS LINE * * */
        (function() {
            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
            dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
        })();
    </script>
    <noscript>Active JavaScript para poder visualizar los <a href="http://disqus.com/?ref_noscript">comentarios por Disqus.</a></noscript>
    <a href="http://disqus.com" class="dsq-brlink">comentarios por <span class="logo-disqus">Disqus</span></a>
</section>
{% endif %}

{% endblock %}

